import { request } from "@/utils/request"

// lng 精度， lat 维度
export const userLocation = (lng, lat) => request({
	url: `location/postLocation`,
	method: "POST",
	data: {
		lng,
		lat,
		time: Date.now()
	},
	showLoading: false
})

export const sendLocationError = (data) => request({
	url: `location/postLocationError`,
	method: "POST",
	data,
	showLoading: false
})

